package com.example.mapper;

import com.example.entity.TransferStation;
import org.apache.ibatis.annotations.Select;

import java.util.List;

/**
 * 操作transfer_station相关数据接口
*/
public interface TransferStationMapper {

    /**
      * 新增
    */
    int insert(TransferStation transferStation);

    /**
      * 删除
    */
    int deleteById(Integer id);

    /**
      * 修改
    */
    int updateById(TransferStation transferStation);

    /**
      * 根据ID查询
    */
    TransferStation selectById(Integer id);

    /**
      * 查询所有
    */
    List<TransferStation> selectAll(TransferStation transferStation);

    @Select("select * from transfer_station where user_id = #{id}")
    TransferStation selectByUserId(Integer id);
}